{ext->class_function class="contacts" func="get_product_field_data" assign="value" name=$good.name parent=$smarty.get.product_id lang=$lang}
<input type="hidden" name="{$good.name}" value="{if !$value}0{else}{$value}{/if}">
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td class="defaultFormLabel" width="25%" height="25"><nobr>{t t=$good.name}</td>
		<td>
		<!-- *  -->
		{if $value}
		{ext->get_binary_data id=$value assign='image_data'}				
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="1"><img src="get.php?i.{$value}:w.100:h.100" style="border:2px solid #AABDC1; margin:5px 10px 5px 0px"></td>	
				<td><input type="button" name="{t t='Ištrinti'}" value="{t t='Ištrinti'}" class="defaultFormButton" onClick="window.location='index.php?admin=1&module=contacts&mod=files&act=del&image_id={$value}&field_name={$good.name}&parent={$smarty.get.product_id}&referer={ext->get_referer}&product_lang={$lang}'"></td>	
			</tr>
		</table>
		{else}
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td><input name="{$good.name}" accept="image/gif" type="file"  class="defaultInputText"></td>		
			</tr>
		</table>
		{/if}
		<!-- /*  -->
		</td>		
	</tr>
</table>